/**
 * 副校长审批人
 */
public class ViceChancellorApprover extends Approver {
    public ViceChancellorApprover(String name) {
        super(name);
    }
    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getPrice() > 10000 && purchaseRequest.getPrice() <= 30000) {
            System.out.println("请求编号：" + purchaseRequest.getId() + "，处理人：" + this.name);
            System.out.println("当前额度范围：" + getApprovalRangeDescription());
            System.out.println("后继责任者：" + (nextApprover != null ? nextApprover.name : "无"));
        } else {
            nextApprover.processRequest(purchaseRequest);
        }
    }
    @Override
    public String getApprovalRangeDescription() {
        return "10000 < x ≤ 30000";
    }
}